//
//  message_header.h
//  TCP Test
//
//  Created by SDSL-3 on 8/7/12.
//  Copyright (c) 2012 TopOfStack Software. All rights reserved.
//

#ifndef TCP_Test_message_header_h
#define TCP_Test_message_header_h

typedef struct  {
    unsigned    char    sync_byte_1     : 8;
    unsigned    char    sync_byte_2     : 8;
    unsigned    char    message_type    : 8;
    UInt64              timestamp       : 48;
    UInt32              source_id       : 32;
    UInt8               message_length0 : 8;
    UInt8               message_length1 : 8;
} message_header;

#endif
